package com.alpsoft.spotcheck.util;

import android.os.Environment;
import cn.pda.scan.CardThread;
import cn.pda.scan.ScanThread;

import com.alpsoft.spotcheck.model.User;

public class GlobalVar {

	
//	public static String httpUrl = "http://127.0.0.1:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.1.108:8080/lk/";
	public static String httpUrl = "http://172.17.1.251:8080/lk/";
//	public static String httpUrl = "http://192.168.1.139:8080/jnsbwx/";
//	public static String httpUrl = "http://10.200.125.50:8081/jnsbwx/";
//	public static String httpUrl = "http://qdalp.wicp.net:8088/sbwx";
//	public static String httpUrl = "http://192.168.1.116:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.0.104:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.1.102:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.0.173:8080/jnsbwx/";
//	public static String httpUrl = "http://172.168.14.242:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.0.36:8080/jnsbwx/";
//	public static String httpUrl = "http://10.200.126.35:8080/jnsbwx/";
//	public static String httpUrl = "http://192.168.0.77:8080/jnsbwx/";
	
	/**
	 * 定义Http传输路径
	 */
	public static String picPath = Environment.getExternalStorageDirectory().getPath() + "/spotCheck/Images/";
	public static String upfilepath = httpUrl + "attachment/appUpload";
	public static String updatapath = httpUrl + "checkRecord/appAddOrUpdate";
	public static String updatapath2 = httpUrl + "lubricantRecord/appAddOrUpdate";
	/**
	 * user
	 */
	public static User user = null;
	
	/**
	 * databaseName
	 */
	public static String databaseName = "spotCheck.db";
	/**
	 * 消息传递类型
	 */
	public static final int msg_LoginSuccess = 1;
	public static final int msg_LoginFailure = 2;
	public static final int msg_UploadSuccess = 3;
	public static final int msg_UploadFailure = 4;
	public static final int msg_NFCSuccess = 5;
	public static final int msg_NFCFailure = 6;
	public static final int msg_ScanSuccess = 7;
	public static final int msg_DownLoadSuccess = 10;
	public static final int msg_DownLoadFailure = 11;
	public static final int msg_pross = 12;
	
	
	/**
	 * 讯飞语音的工具类（实现语音说话）。
	 */
	public static TtsHelper ts;
	/**
	 * 扫码的线程，开启后手持端前部会出现扫码的红外线
	 */
//	public static ScanHelper sc;
	public static ScanThread sc;
	/**
	 * IC卡读取线程。
	 */
	public static CardThread ct;
	/**
	 * 储存扫描码的数值
	 */
	public static String scanCode;
	public static Long scanTime;
	/**
	 * 确认扫描类型，如果类型是sc代表扫码，ct代表扫卡（点检标签有条形码和NFC卡2种）。
	 */
//	public static final String scanType = "ct";//实现NFC卡的扫描
	public static final String scanType = "sc";//实现条形码的扫描
}
